package com.example.demo.service;

import com.example.demo.bean.ERecord;
import com.example.demo.bean.SearchUserRecordByCondition;
import com.example.demo.mapper.ERecordMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ERecordServiceImpl implements ERecordService {

    @Autowired
    private ERecordMapper eRecordMapper;

    @Override
    public List<ERecord> getERcordByUfid(Integer ufid) {
        return eRecordMapper.getERcordByUfid(ufid);
    }

    @Override
    public ERecord getERecordByid(Integer id) {
        return eRecordMapper.getERecordByid(id);
    }

    @Override
    public void updateERecord(ERecord eRecord) {
        eRecordMapper.updateERecord(eRecord);
    }

    @Override
    public void addERecord(Integer ufid) {
        eRecordMapper.addERecord(ufid);
    }

    @Override
    public void insertERecord(ERecord eRecord) {
        eRecordMapper.insertERecord(eRecord);
    }

    @Override
    public ERecord getERecordById(Integer id) {
        return eRecordMapper.getERecordById(id);
    }

    @Override
    public List<ERecord> getERecordByCondition(SearchUserRecordByCondition searchUserRecordByCondition) {
        return eRecordMapper.getERecordByCondition(searchUserRecordByCondition);
    }


}
